/**
  ******************************************************************************
  * @file    queue.h
  * @author  N-K-J
  * @version V0.0.1
  * @date    2012/12/11
  * @brief   queue.h
  ******************************************************************************
 **/

#ifndef _QUEUE_H
#define _QUEUE_H

#include "stdint.h"
#include "mSCConfig.h"

#if QUEUECB


typedef enum _qerrorcode
{
	Q_SUCCESS = 0,	//成功
	Q_FAIL,			//失败
    Q_EMPTY,        //队列为空
    Q_HALF,         //队列半满
    Q_FULL,         //队列为满
}eQerrorcode;



extern void qInit(void);
extern eQerrorcode qCreate(void *header,uint8_t width,uint32_t len);
extern eQerrorcode qDelete(void *header);
extern eQerrorcode qStatus(void *header);
extern eQerrorcode qCount(void *header,uint32_t *len);
extern eQerrorcode qAddItem(void *header,uint32_t data);
extern eQerrorcode qOutItem(void *header,uint32_t *data);
extern eQerrorcode qFlush(void *header);


#endif

#endif

